<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.risk.emptyNumber.title,
  description: seoConfig.risk.emptyNumber.description,
  keywords: seoConfig.risk.emptyNumber.keywords
})

// 产品优势数据
const advantages = [
  {
    icon: 'lucide:search-check',
    title: '批量检测',
    description: '支持批量上传号码文件，快速检测大量号码状态'
  },
  {
    icon: 'lucide:layers',
    title: '精准分类',
    description: '将号码分为活跃号、空号、风险号、沉默号4种数据包'
  },
  {
    icon: 'lucide:trending-down',
    title: '节约成本',
    description: '去除无效号码，降低营销成本，提高投入产出比'
  },
  {
    icon: 'lucide:target',
    title: '提升效率',
    description: '精准触达有效用户，提高营销转化率和工作效率'
  },
  {
    icon: 'lucide:zap',
    title: '快速响应',
    description: '高性能检测引擎，快速返回检测结果'
  },
  {
    icon: 'lucide:database',
    title: '数据准确',
    description: '实时更新号码状态数据库，确保检测结果准确'
  }
]

// 行业应用场景数据
const scenarios = [
  {
    icon: 'lucide:megaphone',
    title: '营销推广',
    description: '短信营销、电话营销前清洗号码，提高营销效果',
    color: 'from-blue-500 to-cyan-500'
  },
  {
    icon: 'lucide:shopping-cart',
    title: '电商平台',
    description: '清理无效用户数据，优化用户画像，提升运营效率',
    color: 'from-purple-500 to-pink-500'
  },
  {
    icon: 'lucide:landmark',
    title: '金融服务',
    description: '客户信息维护，风险号码识别，保障业务安全',
    color: 'from-green-500 to-emerald-500'
  },
  {
    icon: 'lucide:graduation-cap',
    title: '教育培训',
    description: '学员信息管理，清理流失用户，精准招生推广',
    color: 'from-orange-500 to-red-500'
  },
  {
    icon: 'lucide:building-2',
    title: '企业服务',
    description: '客户数据清洗，提高CRM系统数据质量',
    color: 'from-indigo-500 to-blue-500'
  },
  {
    icon: 'lucide:users',
    title: '会员管理',
    description: '会员数据维护，识别沉默用户，优化会员体系',
    color: 'from-yellow-500 to-orange-500'
  }
]
</script>

<template>
  <div class="min-h-screen">
    <!-- 顶部横幅 -->
    <ProductHero
      title="空号检测"
      description="也称号码状态批量检测。经平台检测用户上传号码文件，分成活跃号、空号、风险号、沉默号4种数据包，目的是去除那些空号、停机沉默、风险等无营销价值的号码，让企业和商家的营销更高效更精准，节约成本，提高营销效益"
    />

    <!-- 产品优势 -->
    <section class="py-16 md:py-24 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-16">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            产品优势
          </h2>
          <p class="text-lg text-gray-600">
            精准检测，提升营销效率
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(advantage, index) in advantages"
            :key="index"
            class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group"
          >
            <div class="w-14 h-14 bg-gradient-to-br from-purple-500 to-pink-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">
              {{ advantage.title }}
            </h3>
            <p class="text-gray-600 leading-relaxed">
              {{ advantage.description }}
            </p>
          </div>
        </div>
      </div>
    </section>

    <!-- 行业应用场景 -->
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            行业应用场景
          </h2>
          <p class="text-lg text-gray-600">
            广泛应用于各类需要号码管理的场景
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(scenario, index) in scenarios"
            :key="index"
            class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden"
          >
            <!-- 悬停时的渐变背景 -->
            <div 
              class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity"
              :class="scenario.color"
            />
            
            <div class="relative">
              <div 
                class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br"
                :class="scenario.color"
              >
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">
                {{ scenario.title }}
              </h3>
              <p class="text-gray-600 leading-relaxed">
                {{ scenario.description }}
              </p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>

